[jQuery] Function not working correctly when enclosed in a form

Posted by Nimbuz on Stack Overflow See other posts from Stack Overflow or by Nimbuz
Published on 2010-06-14T16:38:58Z Indexed on 2010/06/14 16:42 UTC
Read the original article Hit count: 143

Filed under:
|
|
|
|

jQuery:

$('.btn.options').click(function() {
  $(this).toggleClass('options-on');
  $("#options").slideToggle("fast");
});

... works great, but when I enclosed both the buttons and the panel in tag, the panel won't slide up/down anymore?

Thanks for your help!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about form